<?php if ($gtAccount != NULL){ ?>
<h5><b>Projects</b></h5>
<!-- select from all current projects displayed as description(id)-->
<h1><b>Select a Project:</b> </h1><br />
<?php echo $this->Form->create(null, array('action' => 'modifyProject'));?>
<select name ="projectId">
<?php foreach($projects as $proj): ?>
	<option value="<?php echo $proj['Project']['project_id']?>">
	<?php echo $proj['Project']['description']; 
	echo " ("; 
	echo $proj['Project']['project_id'];
	echo ")";?>
	</option>
<?php endforeach; ?>
</select>
<br/>
<br/>
<!-- select action-->
<h1><b>Select an Action:</b> </h1><br />
<select name="action">
	<option value = "2">Add/Delete Members</option>
	<option value = "1">Edit</option>
	<option value = "0">Delete</option>
</select>

<?php echo $this->Form->end("Proceed");?>

<!-- add project-->
<h1><b>Create New Project:</b> </h1>
<?php echo $this->Form->create(false,array('action'=>'addProject'));

echo $this->Form->input('id',array(
        'type' => 'text'
    ));
echo $this->Form->input('description',array(
        'type' => 'text'
    ));
echo $this->Form->end('Add'); ?>

<?php } else{ ?>
<h1> Invalid Login </h1>
<?php }?>

    
